package com.hl.qzzpbackend.model.dto.positionType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改岗位类型请求类
 *
 * @author helong
 */
@Data
@ApiModel(value = "修改岗位类型请求类")
public class PositionTypeUpdateRequest implements Serializable {

    /**
     * 岗位类型id
     */

    @NotNull(message = "岗位类型id不能为空")
    @Min(value = 0,message = "岗位类型id不能小于0")
    @ApiModelProperty(value = "岗位类型id")
    private Long id;

    /**
     * 行业类型id
     */
    @ApiModelProperty(value = "行业类型id")
    @NotNull(message = "行业类型id不能为空")
    @Min(value = 0,message = "行业类型id不能小于0")
    private Long industryTypeId;

    /**
     * 岗位名称
     */
    @NotBlank(message = "岗位名称不能为空")
    @ApiModelProperty(value = "岗位名称")
    private String name;


}